﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="TU_Menus.aspx.cs" Inherits="JOIN.Rights.Apps.TU_Menus" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<link rel="STYLESHEET" type="text/css" href="../Dhtmlx/tree/dhtmlxtree.css"/>
    <script src="../Scripts/editPage.js" type="text/javascript"></script>
    <script src="../Dhtmlx/tree/dhtmlxcommon.js" type="text/javascript"></script>
    <script src="../Dhtmlx/tree/dhtmlxtree.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- Add.aspx -->
    <ajaxToolkit:ToolkitScriptManager ID="scriptmanager1" runat="server" />
        
    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="InputTable">
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                项目编码：
            </td>
            <td height="25" width="*" align="left">
                <Kevin:CodeNameSelect ID="cnsProject" runat="server" ServicePath="~/Services/CodeNameService.asmx"
                    ServiceMethod="GetProjects" MinimumPrefixLength="0" />
                    <asp:Label ID="lblID" runat="server" style="display:none;" />
            </td>
            <td height="25" width="30%" align="right" class="InputLabel">
                菜单编号：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuID" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                菜单名称：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuName" runat="server" />
            </td>
            <td height="25" width="30%" align="right" class="InputLabel">
                菜单说明：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuDesc" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                菜单连接地址：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuLink" runat="server" />
            </td>
            <td height="25" width="30%" align="right" class="InputLabel">
                菜单级数：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuLevel" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                父菜单编号：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuParent" runat="server" />
            </td>
            <td height="25" width="30%" align="right" class="InputLabel">
                菜单图标地址：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuIcoUrl" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                菜单项样式名称：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMenuCssName" runat="server" />
            </td>
            <td height="25" width="30%" align="right" class="InputLabel">
                功能ID：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtFunctionID" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="25" width="30%" align="right" class="InputLabel">
                排序序号：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtOrderIndex" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <input id="btnSave" value="保存" type="button" class="btn" />&nbsp;&nbsp;<input id="btnDel"
                    value="删除" type="button" class="btn"  />
            </td>
        </tr>
    </table>
    </div>
    
    <Kevin:DataBind ID="databind1" runat="server" ServicePath="~/Services/BLLService.asmx"
        ServiceMethod="MenusService" ClientDataBind="true">
        <CommandItems>
            <Kevin:CommandItem ControlID="btnSave" CommandType="Save" ServiceMethod="MenusService" />
            <Kevin:CommandItem ControlID="btnDel" CommandType="Del" ServiceMethod="MenusService"
                CallbackMethod="$editPage.close" />
        </CommandItems>
        <BindItems>
            <Kevin:DataBindItem ControlID="lblID" DataPropertyName="ID" IsPrimary="true" />
            <Kevin:DataBindItem ControlID="cnsProject" DataPropertyName="ProjectID" ControlPropertyName="Value" GetValueClientMethod="_getCodeNameSelectValue" />
            <Kevin:DataBindItem ControlID="txtMenuID" DataPropertyName="MenuID" />
            <Kevin:DataBindItem ControlID="txtMenuName" DataPropertyName="MenuName" />
            <Kevin:DataBindItem ControlID="txtMenuDesc" DataPropertyName="MenuDesc" />
            <Kevin:DataBindItem ControlID="txtMenuLink" DataPropertyName="MenuLink" />
            <Kevin:DataBindItem ControlID="txtMenuLevel" DataPropertyName="MenuLevel" />
            <Kevin:DataBindItem ControlID="txtMenuParent" DataPropertyName="MenuParent" />
            <Kevin:DataBindItem ControlID="txtMenuIcoUrl" DataPropertyName="MenuIcoUrl" />
            <Kevin:DataBindItem ControlID="txtMenuCssName" DataPropertyName="MenuCssName" />
            <Kevin:DataBindItem ControlID="txtFunctionID" DataPropertyName="FunctionID" />
            <Kevin:DataBindItem ControlID="txtOrderIndex" DataPropertyName="OrderIndex" />
        </BindItems>
    </Kevin:DataBind>
    
</asp:Content>
